{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="{% static 'css/head.css' %}"/>
    <title>Title</title>
</head>
<body>
<div class="return" onclick="window.open('{% url 'per_center' %}','-self')">返回</div>
    <form action="{% url 'head_picture' %}" enctype="multipart/form-data" method="post">
        {% csrf_token %}
        <div class="first">
            <label for="picture">
            <img src="{% static 'img/Snipaste_2022-03-05_14-18-32.png' %}">
            </label>
            <input  type="file" name="picture" id="picture" hidden /><br>
            <div style="text-align: center;font-size: xx-small;">仅支持jpg和png格式</div>
            <button  name="submit" class="btn btn-info">上传</button>
        </div>
    </form>
</body>
</html>